cmake_minimum_required(VERSION 3.8)
project(write_generate)
file(GENERATE OUTPUT "${PROJECT_BINARY_DIR}/out1.txt" INPUT "${PROJECT_SOURCE_DIR}/input1.txt")
file(GENERATE OUTPUT "${PROJECT_BINARY_DIR}/out2.txt" CONTENT "hello file generate")
file(GENERATE OUTPUT "${PROJECT_BINARY_DIR}/out3.txt" CONTENT "this will put to out3.txt" CONDITION 1)
file(GENERATE OUTPUT "${PROJECT_BINARY_DIR}/out4.txt" CONTENT "out4.txt will not be created" CONDITION 0)
